drop: Guard variable with correct compiler flags
authorBenjamin Otte <otte@redhat.com>
Sat, 22 Feb 2020 05:53:16 +0000 (06:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 22 Feb 2020 06:33:40 +0000 (07:33 +0100)
gdk/gdkdrop.c

index b491eebfdb641fb1db98c47bf6d97040ff56e6b0..fd4169a29b95fc233fb8346ddf13df349b26753f 100644 (file)
@@ -561,7 +561,9 @@ void
 gdk_drop_status (GdkDrop       *self,
                  GdkDragAction  actions)
 {
+#ifndef G_DISABLE_CHECKS
   GdkDropPrivate *priv = gdk_drop_get_instance_private (self);
+#endif
 
   g_return_if_fail (GDK_IS_DROP (self));
   g_return_if_fail (priv->state != GDK_DROP_STATE_FINISHED);